﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using Common;

namespace CodeFactory
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            PPCodes.LoadingBox.LoadingBox lb = new PPCodes.LoadingBox.LoadingBox();//LoadingBox

            try
            {
                lb.SetVer(PubConstant.Version);
                PPCodes.Log.FileLogger.Instance.ToInfo("读取配置文件正常");
            }
            catch (Exception ex)
            {
                PPCodes.Log.FileLogger.Instance.ToError("读取配置文件失败", ex);
                throw ex;
            }

            if (DialogResult.OK == lb.ShowDialog())
            {
                lb.Close();
                Application.Run(new MainStudio());
                //Application.Run(new TestForm());  
            }
            else
            {
                Application.Exit();
            }
            
        }
    }
}
